package com.cd.learn.cdlearn.pattern.decorator;
/**
 * 大白菜装饰者类
 */
public class DaBaiCai extends PeiCai{

    private FastFood fastFood;

    public DaBaiCai(FastFood fastFood){
        super(fastFood);
        this.fastFood = fastFood;
    }

    @Override
    public void showPrice() {
        fastFood.showPrice();
        System.out.println("我的大白菜装饰类！！");
    }

    @Override
    public void decorator() {
       fastFood.decorator();
        System.out.println("我的大白菜装饰类！！");
    }
}
